Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/redundant network calls to notary during auth #1376

Merged
merged 4 commits into from
Nov 27, 2023

Conversation

annekebr
Copy link
Collaborator

@annekebr annekebr commented Nov 16, 2023

Fixes #

Description

Checklist

  • PR is rebased to/aimed at branch develop
  • PR follows Contributing Guide
  • Added tests (if necessary)
  • Extended README/Documentation (if necessary)
  • Adjusted versions of image and Helm chart in Chart.yaml (if necessary)

@annekebr annekebr force-pushed the fix/redundant-network-calls-to-notary-during-auth branch from df07588 to 6ea9dac Compare November 16, 2023 10:23
@annekebr annekebr changed the base branch from master to develop November 16, 2023 10:23
@codecov-commenter
Copy link

codecov-commenter commented Nov 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (830dd74) 96.59% compared to head (25fe04b) 96.64%.
Report is 13 commits behind head on develop.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1376      +/-   ##
===========================================
+ Coverage    96.59%   96.64%   +0.05%     
===========================================
  Files           23       23              
  Lines         1323     1343      +20     
===========================================
+ Hits          1278     1298      +20     
  Misses          45       45              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@annekebr annekebr force-pushed the fix/redundant-network-calls-to-notary-during-auth branch 4 times, most recently from d5ed06f to 0588930 Compare November 23, 2023 09:42
docs/CONTRIBUTING.md Outdated Show resolved Hide resolved
.github/actions/alerting-endpoint/action.yaml Outdated Show resolved Hide resolved
.github/actions/notary-server-ip/action.yml Outdated Show resolved Hide resolved
.github/actions/notary-server-ip/action.yml Outdated Show resolved Hide resolved
.github/actions/notary-server-ip/action.yml Show resolved Hide resolved
.github/actions/notary-signer-ip/action.yaml Show resolved Hide resolved
.github/actions/setup-notary/action.yaml Outdated Show resolved Hide resolved
.github/actions/setup-notary/action.yaml Show resolved Hide resolved
.github/workflows/.reusable-integration-test.yml Outdated Show resolved Hide resolved
.github/workflows/.reusable-integration-test.yml Outdated Show resolved Hide resolved
@annekebr annekebr force-pushed the fix/redundant-network-calls-to-notary-during-auth branch from 860fff8 to 7e11e81 Compare November 23, 2023 11:29
connaisseur/validators/notaryv1/notaryv1_validator.py Outdated Show resolved Hide resolved
tests/data/notary/hanswurstnotary.yaml Outdated Show resolved Hide resolved
tests/data/notary_service_container/server/config.json Outdated Show resolved Hide resolved
tests/data/notary_service_container/server/config.json Outdated Show resolved Hide resolved
tests/integration/integration-test.sh Outdated Show resolved Hide resolved
tests/integration/integration-test.sh Show resolved Hide resolved
tests/integration/integration-test.sh Outdated Show resolved Hide resolved
tests/integration/update-self-hosted-notary.yaml Outdated Show resolved Hide resolved
tests/integration/update-self-hosted-notary.yaml Outdated Show resolved Hide resolved
@annekebr annekebr force-pushed the fix/redundant-network-calls-to-notary-during-auth branch 2 times, most recently from 602b98f to 25fe04b Compare November 27, 2023 11:48
Starkteetje
Starkteetje previously approved these changes Nov 27, 2023
Currently, for each TUF role the first request is simply to get the auth endpoint, the second is getting the actual auth token and only the third fetches the actual data. For four roles that makes 12 requests in total. Now, the auth token should be fetched beforehand (2 calls) resulting in 6 calls in total.
@annekebr annekebr force-pushed the fix/redundant-network-calls-to-notary-during-auth branch from 25fe04b to b2cd4a6 Compare November 27, 2023 12:06
@annekebr annekebr merged commit b2cd4a6 into develop Nov 27, 2023
52 checks passed
@annekebr annekebr deleted the fix/redundant-network-calls-to-notary-during-auth branch November 27, 2023 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants